package com.timoon.webcomponent.utility.titlelist.dangdang;

import org.apache.wicket.markup.html.basic.Label;

import com.googlecode.wicket.jquery.ui.Options;
import com.timoon.component.behavior.bootstrap.AbstractBootStrapBehavior;
import com.timoon.webcomponent.utility.titlelist.BaseTitleListPanel;
import com.timoon.webcomponent.utility.titlelist.dangdang.panel.ListPanel;

/**
 *<p>仿当当标题list</p>
 *<p>public</p>
 *<p>Copyright:Copyright(c)2013.4.1</p>
 *<p>Company:timoon</p>
 *@author 付乐天
 *@version 1.0 */
public class DangdangTitleListPanel<T> extends BaseTitleListPanel {

	private DangdangTitleListParameter parameter;
	
	public DangdangTitleListPanel(String id,DangdangTitleListParameter parameter) {
		super(id);
		// TODO Auto-generated constructor stub
		
		this.parameter=parameter;
		
		//引用bootstrap
		this.add(new AbstractBootStrapBehavior("#ddddddd", "click", new Options()));
		
		this.doPanel();
	}
	public void doPanel(){
		
		this.renderHeader();
		
		add(new ListPanel("wk_list1",this.parameter,1));
		add(new ListPanel("wk_list2",this.parameter,2));
		add(new ListPanel("wk_list3",this.parameter,3));
	}
	public void renderHeader(){
		add(new Label("wk_title1",this.parameter.getTitle1()));
		add(new Label("wk_title2",this.parameter.getTitle2()));
		add(new Label("wk_title3",this.parameter.getTitle3()));
	}
}
